<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title></title>
		<link rel="stylesheet" type="text/css"
			href="${contextPath}/resource/css/default.css" />
		<script src="${contextPath}/resource/js/index.js"></script>
		<script src="${contextPath}/resource/js/menu.js"></script>
		<script language="javascript">
			var messge =""+'${passwordMassege}';
			if(messge != ""){
				alert(messge);
			}
		</script>
	</head>
	<body>
		<table class="menu_table">
			<tr>
				<th>用户信息
				<input type="button"  value="" onclick="showSearchDiv(this)" class="search_show_style" align="middle"/></th>
			</tr>
		</table>
		<div class="listtable">

<div class="secondDiv">
		<form action="userAction_list.do" method="post">
		<div id="search_div" style="display: none;width: 100%;margin: auto; display: none;" >
			  <table class="search_table" width="100%">
			<tr>
				<td width="15%" align="center">登录名:</td>
				<td width="35%">
					<s:textfield name="sarchSignName"/>
				</td>
				<td width="15%" align="center">姓名:</td>
				<td width="35%">
					<s:textfield name="sarchName"/>
				</td>
			</tr>
			<tr>
				<td align="center">所属机构:</td>
				<td colspan="3"><s:select list="roleSelectMap" name="sarchOrgNo"></s:select>
				</td>
			</tr>
			<tr>
				<td colspan="4" align="center">
					<input type="submit" value="" class="search_style"/>
				</td>
			</tr>
		</table> 
		</div></form>


		<table class="data_js_table" id="js_table">
			<tr>
				<th width="12%">登陆名</th >
				<th width="12%">姓名</th>
				<th width="7%">电话</th>
				<th width="10%">电子邮件</th>
				<th width="15%">所属机构</th>
				<th width="10%">最后登录时间</th>
				<th width="5%">状态</th>
				<th  width="6%">操作</th>
			</tr>
			<s:iterator value="page.list" var="user">
				<tr>
					<td>
						<a href="userAction_view.do?user.userId=${user.userId}" >
							<s:property value="#user.signNm" />
						</a>
					</td>
					
					<td><s:property value="#user.userName" /></td>
					<td><s:property value="#user.mobl" /></td>
					<td><s:property value="#user.email" /></td>
					<td><s:property value="roleSelectMap[#user.blngOrgNo]" /></td>
					<td>
						<s:date name="#user.ltstSignTm" format="yyyy-MM-dd hh:mm" />
					</td>
					<td>
						<s:if test="#user.vldMrk==1"> 正常</s:if>
						<s:else>锁定</s:else>
					</td>
					<td>
					<s:if test="buttonGrpMap['resetPassword']">
						<a href="userAction_resetPassword.do?user.userId=${user.userId}" title="重置密码">
							<img src="${contextPath}/resource/img/ico/resetPwd.png" class="edit_style" align="middle" alt="重置密码"></img>
						</a>&nbsp;|&nbsp;
					</s:if>
					<s:if test="buttonGrpMap['edit']">
						<a href="userAction_edit.do?user.userId=${user.userId}" title="修改">
							<img src="${contextPath}/resource/img/ico/edit.png" class="edit_style" align="middle" alt="修改"></img>
						</a>&nbsp;|&nbsp;
					</s:if>
					<s:if test="buttonGrpMap['delete']">
						<a href="userAction_delete.do?user.userId=${user.userId}"
							onclick="ismesag('确认删除'+'${user.userName}'+'用户?')" title="删除">
									<img src="${contextPath}/resource/img/ico/delete.png" class="delete_style" align="middle" alt="删除"></img>
						</a>
					</s:if>
					</td>
				</tr>
			</s:iterator>
		</table>
			<table class="button_table">
				<tr>
					<td  width="20%" align="left">
					<div style="">
						<s:if test="buttonGrpMap['add']">
						<input type="button"
								onclick="javascript:location='userAction_add.do'"  class="add_style" value=""/>
						</s:if>
					</div>
					</td>
					<td >
						<div class="pages">
							${pageLinkList}
						</div>
					</td>
				</tr>
			</table>
			</div>
			</div>
	</body>
</html>
